package com.github.prontera.model.request;

import javax.validation.constraints.NotNull;

import org.hibernate.validator.constraints.NotBlank;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.github.prontera.domain.enums.UserLoginTypeEnum;

import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.ToString;

@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = true)
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonIgnoreProperties(value = { "hibernateLazyInitializer", "handler", "fieldHandler" }, ignoreUnknown = true)
public class UserLoginRequest2 extends RestfulRequest {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	@NotNull
	@NotBlank
	private UserLoginTypeEnum loginType;
	
	@NotNull
	@NotBlank
	@JsonProperty("code")
	@ApiModelProperty(value = "第三方登录的openid", example = "18888888888", required = true)
	private String code;

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public UserLoginTypeEnum getLoginType() {
		return loginType;
	}

	public void setLoginType(UserLoginTypeEnum loginType) {
		this.loginType = loginType;
	} 
	 
	
}
